#ifndef _STDSQLITEDATABASE_H_
#define _STDSQLITEDATABASE_H_

#include <iostream>
#include "stdDataBase.h"
#include <sqlite3.h>

class stdSqliteDataBase :public StdDataBase
{
public:
    stdSqliteDataBase();
    ~stdSqliteDataBase();

public:
    //连接数据库
    bool connect(const char * hostname);

    //执行查询语句
    QueryResult query(const std::string &sql);

    //执行执行语句
    bool execute(const std::string &sql);

    //关闭数据库连接
    void close();
private:
    sqlite3* db;
    std::string database;
};




#endif